/*
 * @Description: In User Settings Edit
 * @Author: your name
 * @Date: 2019-08-12 22:11:38
 * @LastEditTime: 2019-08-13 21:11:28
 * @LastEditors: Please set LastEditors
 */
const connect = require('connect')
const router = require('./router')

var routes = {
    GET : {
        '/users' : function(req,res){
            res.end('tobi, loki ,ferret')
        },
        '/user/:id' : function(req,res,id){
            res.end('user'+id)
        }
    },
    DELETE : {
        '/user/:id' : function(req,res,id){
            res.end('delete user' + id)
        }
    }
}

connect().use(router(routes)).listen(3000)